package org.me.CreateManyImage;

import android.graphics.Bitmap;

public class GraphicsObject {
	
	private Bitmap bitmap;
	private Coordinates coordi;
	public GraphicsObject(Bitmap _bitmap)
	{
		this.bitmap = _bitmap;
		coordi = new Coordinates();
	}
	
	public Bitmap GetBitmap()
	{
		return bitmap;
	}
	
	public Coordinates GetCoordinates()
	{
		return coordi;
	}
	
	public class Coordinates{
		private int x = 100;
		private int y = 0;
		public int getX()
		{
			return x+bitmap.getWidth()/2;
		}
		
		public void SetX(int _x)
		{
			x = _x - bitmap.getWidth()/2;
		}
		
		public int getY()
		{
			return y+bitmap.getHeight()/2;
		}
		
		public void SetY(int _y)
		{
			y = _y - bitmap.getHeight()/2;
		}
		
		public String toString()
		{
			return "Coordinates : ("+x+"/"+y+")";
		}
		
	}

}
